/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package systole.persistence.brokersInterface;

import java.util.List;
import systole.domain.clinicalInformation.Pathology;
import systole.exceptions.ExceptionDAO;
import systole.synchronization.remote.entities.PathologyRemote;

/**
 *
 * @author Juan Manuel
 */
public interface PathologySyncBroker {

    /**
     * 
     * @param pathologyRemote
     * @throws ExceptionDAO 
     */
    public void savePathologyRemote(PathologyRemote pathologyRemote) throws ExceptionDAO;
 

    /**
     * 
     * @return PathologyRemote list
     * @throws ExceptionDAO 
     */
    public List<PathologyRemote> getPathologiesToUpdate() throws ExceptionDAO;

    /**
     * 
     * @return
     * @throws ExceptionDAO 
     */
    public List<Pathology> getPathologiesToUpload() throws ExceptionDAO;

    /**
     *
     * @param remoteId
     * @return
     * @throws ExceptionDAO
     */
    public Pathology getPathologyByRemoteId(int remoteId) throws ExceptionDAO;

    /**
     * 
     * @param pathology
     * @return
     * @throws ExceptionDAO
     */
    public PathologyRemote getPathologyRemoteByPathology(Pathology pathology) throws ExceptionDAO;
    
    /**
     * 
     * @return
     * @throws ExceptionDAO 
     */
    public int getLastRemotePathologyIdSynchronized() throws ExceptionDAO;
}
